package com.itheima.comment.docs;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

@Data
@Document("ap_comment_like")
public class ApCommentLikeDocument {

    /**
     * id
     */
    @Id
    private String id;

    /**
     * 用户ID  并不是作者表的ID.而是当前登录APP的用户ID 对于某一个评论的点赞相关
     */
    private Integer authorId;

    /**
     * 评论id
     */
    private String commentId;

    /**
     * 0：点赞
     * 1：取消点赞
     */
    private Integer operation;
}